package com.briup.es.config.constant;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 使用枚举类来维护订单状态的关系
 */
@Getter
@RequiredArgsConstructor
public enum OrderStatus {
    NOT_PAY(1,"订单生成，但未支付"),
    PAYED(2,"已支付，未发货"),
    SENT(3,"已发货，但未收货"),
    RECEIVED(4,"已收货"),
    CLOSED(5,"订单已取消");

    private final Integer code;
    private final String description;

}
